/**
 * Copyright 2010 Pavel Daniel Alexandru PFA
 * 
 * Licensed under the terms of the GNU Lesser General Public License version 3 
 * as published by the Free Software Foundation. You may obtain a copy of the
 * License at: http://www.gnu.org/copyleft/lesser.html
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations 
 * under the License. 
 */
package com.kobol.webclient.client.main.view;

import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;
import com.gwtplatform.mvp.client.ViewImpl;
import com.kobol.webclient.client.main.presenter.MainPagePresenter;

/**
 * @author Pavel Alexandru
 * 
 */
public class MainPageView extends ViewImpl implements MainPagePresenter.MyView {

    DockLayoutPanel panel = new DockLayoutPanel(Unit.EM);

    @Inject
    public MainPageView() {
	panel.addNorth(new HTML("Masthead"), 2);
	panel.addWest(new HTML("Navigation Pane"), 10);
	panel.add(new HTML("Context Area"));
    }

    @Override
    public Widget asWidget() {
	return panel;
    }
}
